<?php use_helper('I18N', 'Date') ?>
<?php include_partial('ct_documento_comentario/assets') ?>
<script type="text/javascript">
  var url_saveComentario = '<?php echo url_for("ct_documento_comentario/create") ?>';
  $(document).ready(function(){
    $('.comment_submit_btn').click(function(){
      saveComment($('#comment_form'));
    });
  });
</script>
<div id="comments">
  <?php if ($comentarios = $CtDocumento->getComentarios()): ?>
    <?php foreach ($comentarios as $comentario): ?>
      <?php include_partial('ct_documento_comentario/comentario', array('CtDocumentoComentario' => $comentario)) ?>
    <?php endforeach; ?>
  <?php endif; ?>
</div>
<div id="comment_loader"></div>
<div>
  <?php include_partial('ct_documento_comentario/form', array('CtDocumentoComentario' => $CtDocumentoComentario, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper)) ?>
</div>





